package com.example.vp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.vp.domian.enetity.Subscribe;
import com.example.vp.domian.enetity.Type;

import java.util.List;
import java.util.Set;

public interface SubscribeService extends IService<Subscribe> {
    /**
     * 用户根据传进来的 typeId进行订阅
     * @param typeId
     */
    void subscribe(Set<Long> typeId);

    List<Type> listAll();

    List<Type> getSubscribe(Long userId);
}
